package com.song.server;

import java.io.Serializable;
import java.util.Arrays;

public class Invocation implements Serializable{

	
	private Class interfaces;
	
	private Method method;
	
	private Object[] params;
	
	private Object result;

	public Class getInterfaces() {
		return interfaces;
	}

	public void setInterfaces(Class interfaces) {
		this.interfaces = interfaces;
	}

	public Method getMethod() {
		return method;
	}

	public void setMethod(Method method) {
		this.method = method;
	}

	public Object[] getParams() {
		return params;
	}

	public void setParams(Object[] params) {
		this.params = params;
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

	public String toString() {
		return "INvocation [interfaces=" + interfaces + ", method=" + method
				+ ", params=" + (params != null ? Arrays.asList(params) : null)
				+ ", result=" + result + "]";
	}
	
	
	
}
